package com.example.neusoft215gdh.android_21.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import com.example.neusoft215gdh.android_21.R;
public class LoginActivity extends AppCompatActivity {

    private Button regUser;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_login);
        initViews();
        inEvents();
    }

    public void initViews() {

        regUser = (Button) findViewById(R.id.regUser);
    }

    public void inEvents() {
        regUser.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(LoginActivity.this, RegisterActivity.class);
                startActivity(intent);
            }
        });
    }
}
